import Vue from 'vue'
import VueRouter from 'vue-router'

import login from '../login.vue'
import index from '../index.vue'

import Student from "../pages/Student.vue"
import Class from "../pages/ClassManager.vue"
import Room from "../pages/Room.vue"
import car from "../pages/CarManager.vue"
import Employee from "../pages/Employee.vue"
import ElementUI from "../pages/ElementUI.vue"

Vue.use(VueRouter)

const routes = [
    {path:'/land',component:login},
    {path:'/index',component:index,
        children:[
            {path:"/index/student",component:Student},
            {path:"/index/class",component:Class},
            {path:"/index/room",component:Room},
            {path:"/index/car",component:car},
            {path:"/index/employee",component:Employee},
            {path:"/index/elementUI",component:ElementUI}
        ]
    }
]

export default new VueRouter({
    mode:'history',
    routes
})